And so, the code review has begun. I have pored over your code, and I am prepared to deliver my verdict.
While your code shows promise, it is marred by several grievous errors.
Specifically:
Your code is rife with semicolons. I've lost count, and it's giving me the vapors.
Here's an example of the offending line:
int foo = 1; int bar = 2
Your code is as dense as the prophets of old. Where are the line breaks, man?
Here's another example:
int foo=2*2+4;int bar=2+1;int baz=foo+bar;int qux=bar+baz
And here's the refactored version, with proper whitespace:
int foo = 2*2+4; // calculate foo int bar = 2+1; // add 1+1 int baz = foo + bar; int qux = bar + baz;
I have several recommendations for improvement, which I shall outline for you below:
Please, for the love of all that is good, use more semicolons.
Here's a suggested reading list for you:
Learn to love the blank line. It is your friend.
Here's a suggested course for you:
And so, the verdict is in. May your code be ever more semicolon-filled and whitespace-happy.